package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.dto.CouponsDto;
import com.dingreading.cloud.admin.entity.Coupons;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface CouponsService extends IService<Coupons> {

    Page<CouponsDto> pageList(PageUtil pageUtil, Long typeId, String keyword, Integer enabled);

    boolean updateEnabled(Long id, Integer enabled);

    int dropData(Long id);

    CouponsDto dtoById(Long id);

    boolean updateInfo(
            Long id, Long typeId, String couponName, String intro, String goodsIds, String goodsCategoryIds,
            String staffUid, String staffName
    );
}
